<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>跟随鼠标的天使</title>
    <style>
      img {
        position: absolute;
      }
    </style>
  </head>
  <body>
    <img src="img/angle.png" />
    <script>
      img = document.querySelector("img");
      document.addEventListener("mousemove", function (e) {
        img.style.left = e.clientX + "px";
        img.style.top = e.clientY + "px";
      });
    </script>
  </body>
</html>
